package com.alks.function.mapper.pcfactoryquery;

import com.alks.entity.data.entity.PcStitchDetailAttach;
import com.alks.function.data.dto.biocontrol.factoryQuery.DailyReportDetailDto;
import com.alks.function.data.dto.produce.PcStitchBarcodeDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;


public interface FT_QR_PcStitchDetailAttachMapper extends BaseMapper<PcStitchDetailAttach> {

    /*查询 PC_STITCH_DETAIL_ATTACH ：今天，缴库单位，指令相同的有没有*/
    List<PcStitchDetailAttach> queryStitchDetailAttach(PcStitchBarcodeDto stitchDto);

    List<PcStitchDetailAttach> queryStitchDetailAttach2(String slipNo);

    /*更新用量 PC_STITCH_DETAIL_ATTACH*/
    int updateQty(PcStitchDetailAttach detailAttach);

    /*批量更新*/
    int batchInsert(List<PcStitchDetailAttach> list);

    /*批量删除*/
    void deleteBatchBySlipNos(List<String> list);

    /**
     * 日报表明细
     */
    List<DailyReportDetailDto> getDailyProdDetail(@Param("companyId") String companyId, @Param("deptName") String deptName, @Param("date") LocalDateTime date);
}
